<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			//----------------数组------------------------------------------
			const arr1 = [1, 2, 3];
			// console.log(...arr);

			const arr2 = [4, 5, 6];

			const arr3 = [...arr1, ...arr2];
			// console.log(...arr3);

			//----------------对象------------------------------------------
			const stu = {
				name: '张三',
				age: 20
			}

			const stu2 = {
				...stu,
				set: '男'
			}

			console.log(stu2);
		</script>
	</body>
</html>
